package com.soft.base.contract;
/**
 * class
 *
 * @author user
 * @date 2020/06/05
 */
public class LazyValue {

    private LazyValue() {
    }

    private static LazyValueFacade lazyValueFacade;

    public static synchronized void boot(LazyValueFacade lazyValueFacade) {
        LazyValue.lazyValueFacade = lazyValueFacade;
    }

    public static String hash(String key, LazyValueFacade.Callback callback) {
        return lazyValueFacade.hash(key, callback);
    }

    public static void notifyChange(String key) {
        lazyValueFacade.notifyChange(key);
    }
}
